var _contextPath;

function getContextPath() {
	if ("" == _contextPath || 'undefined' == _contextPath) {
		_contextPath = $("#contextPath").val();
	}
	return _contextPath;
}

function goBack(){
	window.location.href = contextPath + "iccard/recharge/rechargecard_cancel.jsp?cardNum="+cardNum;
}
/**
 * 卡销户下一步
 */
function cancelation() {
	$.ajax({
		type : 'POST',
		url :  contextPath + 'iccard/rechargecard/cancelation',
		data : {
		},
		dataType : 'json',
		success : function(root) {
			if (root.opResult == '0') {
				top.uppShow(root.msgDesc);
				window.location.href = contextPath + 'iccard/recharge/rechargecard_cancel.jsp';
			} else {
				top.uppShow(root.msgDesc);
			}
		},
		error : function(data) {
			uppAjaxError(data);
		}
	});
	
}


